import { requestClient } from '#/api/request';
/**
 *  获取列表
 */
export async function factorylList(params: object = {}) {
  return requestClient.get('/admin/Factory/index', params);
}

/**
 *  导出列表
 */
export async function factoryExcel(params: object = {}) {
  return requestClient.get('/admin/FactoryExcel/factory_excel', params, { responseReturn: 'raw' })
}


/**
 *  获取详细
 */
export async function editFactory(params: object = {}) {
  return requestClient.get('/admin/Factory/edit', params,);
}

/**
 *  获取全选
 */
export async function ErpBaseSupplyRoleCategory(params: object = {}) {
  return requestClient.get('/admin/ErpBaseSupplyRoleCategory/index', params,);
}

/**
 *  获取全国城市
 */
export async function gitCityList() {
  return requestClient.get('/admin/erp.PublicInfo/city_list');
}

/**
 *  编辑
 */
export async function saveFactory(params: object = {}) {
  return requestClient.post('/admin/Factory/edit', params, { responseReturn: 'raw' })
}



/**
 *  编辑
 */
export async function addFactory(params: object = {}) {
  return requestClient.post('/admin/Factory/add', params, { responseReturn: 'raw' })
}

/**
 *  编辑
 */
export async function setDefaultRowFactory(params: object = {}) {
  return requestClient.post('/admin/Factory/setDefaultRow', params, { responseReturn: 'raw' })
}


